package visitor.pattern.demo;

/**
 * Created by 逸足天涯
 * Date: 2019/10/21.
 * Time: 14:31
 */
public class Visitor implements IVisitor {
    @Override
    public void visitor(MyClass myClassElement) {
        System.out.println("Visotor is trying to change the integer value");
        myClassElement.setMyInt(100);
        System.out.println("Exiting from Vistor - visit");
    }
}
